<template>
<h1>事件绑定指令</h1>
  <button @click ="f()">按钮1 </button>
  <button v-on:@click ="f()">按钮2 </button>

  <h3>回车按下时间</h3>
  <input type="text" @keydown.enter="ent()" >

</template>

<script setup>
const f =() =>{
  alert('电解铝')
}

const ent = ()=>{
  alert('回车键')
}

</script>

<style scoped>

</style>